package org.kgc.alanhealth.service.impl;

import org.kgc.alanhealth.entity.HospitalType;
import org.kgc.alanhealth.mapper.HospitalTypeMapper;
import org.kgc.alanhealth.service.HospitalTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HospitalTypeServiceImpl implements HospitalTypeService {

    @Autowired
    private HospitalTypeMapper hospitalTypeMapper;

    @Override
    public List<HospitalType> getTypesByDepartmentId(Integer id) {
        return hospitalTypeMapper.selectTypeByDepartmentId(id);
    }
}